package com.lamda.zhekou.dao;


import com.lamda.zhekou.manager.PageModel;
import com.lamda.zhekou.model.User;
import com.lamda.zhekou.vo.UserVpsSelectVo;

import java.util.List;

/**
 * Created by MJiao on 15/8/13.
 */
public interface UserDao extends GenericDao<User> {
    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @param asc  是否为升序查询
     * @return
     */
    PageModel<User> paging(int pageNo, int pageSize, boolean asc);

    /**
     * 分页查询
     * @param pageNo
     * @param pageSize
     * @return
     */
    PageModel<User> paging(int pageNo, int pageSize);

    List<User> getUsersByFyEmailFilter(String keyWord);

    List<User> findAllAdmins();

    List<User> findAllCommonUser();

}
